package data

import "git.cloud.inspur.com/ichain/ichain-sdk-go/pkg/client/chain"

const (
	pvk137 = `
-----BEGIN PRIVATE KEY-----
MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgmNve1cMoiKxdrb5f
c9u/AiHTty9sSnARiOExP3ONRS+gCgYIKoEcz1UBgi2hRANCAARw/casruBYk44u
19nt0hc6bJzf4gwoUcBzt6vZXRk/c2DL0bMUBKiBW54tGxGE45lCyJD5tR0+8Qly
O6769ygF
-----END PRIVATE KEY-----
`

	cert137 = `
-----BEGIN CERTIFICATE-----
MIICNDCCAdqgAwIBAgIRAOn7+9JFRMX0t4ug6lpZ4jUwCgYIKoEcz1UBg3UweDEL
MAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5kb25nMQ4wDAYDVQQHEwVKaW5hbjEJ
MAcGA1UECRMAMQkwBwYDVQQREwAxDjAMBgNVBAoTBW9yZzAxMQkwBwYDVQQLEwAx
FTATBgNVBAMTDGNhLm9yZzAxLmliYzAeFw0yNDAxMzAxMTE4MDBaFw0zNDAxMjcx
MTE4MDBaMHAxCzAJBgNVBAYTAkNOMREwDwYDVQQIEwhTaGFuZG9uZzEOMAwGA1UE
BxMFSmluYW4xCTAHBgNVBAkTADEJMAcGA1UEERMAMQkwBwYDVQQLEwAxHTAbBgNV
BAMMFG9yZzAxYWRtaW5Ab3JnMDEuaWJjMFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0D
QgAEcP3GrK7gWJOOLtfZ7dIXOmyc3+IMKFHAc7er2V0ZP3Ngy9GzFASogVueLRsR
hOOZQsiQ+bUdPvEJcjuu+vcoBaNNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1UdEwEB
/wQCMAAwKwYDVR0jBCQwIoAgJ6gG3opWFKcJrmv3h2lR67kH9aTOC1odpepUCZqi
7NYwCgYIKoEcz1UBg3UDSAAwRQIgb1GnCQ3de5Vc33ESgkwx5eJQa7i2pF2W03pa
JoS3WnQCIQCw9YGPhXNwV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M9jOp3ywtZUjm2cCFKeFJdG2hKjo
-----END CERTIFICATE-----
`
)

func Baas137() *BaasEnv {
	return &BaasEnv{
		orgName:        "org01",
		iamId:          "org01",
		chainId:        "chain01",
		cert:           cert137,
		pvk:            pvk137,
		adminCert:      cert137Admin,
		adminPvk:       key137Admin,
		loglevel:       "info",
		inodeList:      []string{"inode13701.org01.ibc"},
		inodeUrls:      []string{"grpc://10.110.8.145:33241"},
		inodeCerts:     nil,
		consenserList:  []string{"c13701.baas", "c13702.baas", "c13703.baas"},
		consenserUrls:  []string{"grpc://10.110.8.144:32231", "grpc://10.110.8.144:32232", "grpc://10.110.8.144:32233"},
		consenserCerts: nil,
		ccInvoke: []chain.Request{
			{
				ContractID: "proof-cc-01",
				Fcn:        "queryData",
				Args:       [][]byte{[]byte("key1")},
			},
		},
		cryptoType: "GM",
	}
}
